//
//  MyView.h
//  DrawWall
//
//  Created by gll on 13-1-2.
//  Copyright (c) 2013年 gll. All rights reserved.
//

#import <UIKit/UIKit.h>
@interface MyView : UIView{
    //保存线条颜色
   NSMutableArray *colorArray;
    //保存被移除的线条颜色
   NSMutableArray *deleColorArray;
    //每次触摸结束前经过的点，形成线的点数组
   NSMutableArray *pointArray;
    //每次触摸结束后的线数组
   NSMutableArray *lineArray;
    //删除的线的数组，方便重做时取出来
   NSMutableArray *deleArray;
    //删除线条时删除的线条宽度储存的数组
   NSMutableArray *deleWidthArray;
    //正常存储的线条宽度的数组
   NSMutableArray *WidthArray;
}
@property(nonatomic,strong)UIColor *colors;    //线条颜色
@property(nonatomic,strong)UIColor *oldColor;
@property(nonatomic,strong)NSMutableArray *oldColors;    //改变色彩之前的颜色值数组
@property(nonatomic,strong)NSMutableArray *colorArray;
@property(nonatomic,strong)NSMutableArray *deleColorArray;
@property(nonatomic,strong)NSMutableArray *pointArray;
@property(nonatomic,strong)NSMutableArray *lineArray;
@property(nonatomic,strong)NSMutableArray *deleArray;
@property(nonatomic,strong)NSMutableArray *deleWidthArray;
@property(nonatomic,strong)NSMutableArray *WidthArray;

// get point  in view
-(void)addPA:(CGPoint)nPoint;
-(void)addLA;
-(void)revocation;
-(void)refrom;
-(void)clear;
-(void)setLineColor:(UIColor *)color;
-(void)setlineWidth:(NSInteger)width;
@end
